import request from '@/utils/request'

// 评论列表
export function getComment(data) {
  return request({
    url: '/api/comment',
    method: 'get',
    params: data
  })
}
// 拒绝||通过
export function getPassComment(data, id) {
  return request({
    url: `/api/comment/${id}`,
    method: 'PATCH',
    data
  })
}
// 回复
export function getAddComment(data) {
  return request({
    url: `/api/comment`,
    method: 'POST',
    data
  })
}
// 删除
export function deleteComment(id) {
  return request({
    url: `/api/comment/${id}`,
    method: 'DELETE'
  })
}

